package mkis.service.root.data.dao;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.dao.support.DaoSupport;
import org.springframework.stereotype.Repository;

import com.ibatis.sqlmap.client.SqlMapClient;

@Repository("testDAO")
public class TestDAO 
{
	
	@Resource(name="sqlMapClient")
	private SqlMapClient sqlMapClient;
	
	public List<Map<String, Object>> getList() throws Exception{
		return sqlMapClient.queryForList("sample.getList");
	}

	public void insertDatatest1(String string) throws Exception {
		sqlMapClient.insert("sample.inserttab1",string);
	}

	public void insertDatatest2(String string) throws Exception {
		sqlMapClient.insert("sample.inserttab2",string);
	}
}
